//
//  UILabel+Extension.swift
//  Faner_Weibo
//
//  Created by 范英强 on 16/2/1.
//  Copyright © 2016年 范英强. All rights reserved.
//

import UIKit

extension UILabel{
    
    convenience init(textColor: UIColor, fontSize: CGFloat,maxWidth: CGFloat = 0) {
        self.init()
        
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(fontSize)
        
        if maxWidth > 0{
            numberOfLines = 0
            preferredMaxLayoutWidth = maxWidth
        }
    }
}
